package com.yike.order.service;

import com.yike.order.entity.Refund;
import com.yike.order.param.RefundPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 退款单表 服务类
 *
 * @author yike
 * @since 2024-08-01
 */
public interface RefundService extends BaseService<Refund> {

    /**
     * 保存
     *
     * @param refund
     * @return
     * @throws Exception
     */
    boolean saveRefund(Refund refund) throws Exception;

    /**
     * 修改
     *
     * @param refund
     * @return
     * @throws Exception
     */
    boolean updateRefund(Refund refund) ;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteRefund(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param refundPageParam
     * @return
     * @throws Exception
     */
    Paging<Refund> getRefundPageList(RefundPageParam refundPageParam) throws Exception;

}
